#include "login.h"
#include "ui_login.h"
#include <QMovie>
#include "widget.h"
#include "widget2.h"
Login::Login(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Login)
{
    ui->setupUi(this);
    //加载图标

    setWindowIcon(QIcon(":/qtthings/rr"));
    //设置动画
   QMovie *movie =new QMovie(this);
   movie->setFileName(":/qtthings/QQ");
   movie->start();
   ui->label->setMovie(movie);
   this->setWindowTitle("登录界面");
   this->gmew2=new Widget2;
   this->gamew = new Widget;
   gamew->close();
   this->connect(ui->pushButton_3,SIGNAL(clicked()),this,SLOT(startclick()));
   this->connect(ui->pushButton_2,SIGNAL(clicked()),this,SLOT(startclick2()));
}

Login::~Login()
{
    delete ui;
}
void Login::startclick()
{
    gamew->show();
}
void Login::startclick2()
{
     gmew2->show();
}


